package com.example.springboot.mapper;

import com.example.springboot.entity.CityPopulation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CitypopulationMapper {

    // 查询所有市区2022年人口总数
    @Select("SELECT * FROM city_population")
    List<CityPopulation> selectByCity();
}
